package ru.kisa_wst.HTML;

public class FormParams {
	private String type;
	private String value;
	private String name;
	
	public FormParams(String type,String value,String name){
		this.type=type;
		this.value=value;
		this.name=name;
	}


	public String getType() {
		return type;
	}

	public String getValue() {
		return value;
	}
	
	public String getName() {
		return name;
	}
	
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("<input name=\""+getName()+"\"");
		builder.append(" type=\""+getType()+"\"");
		builder.append(" value=\""+getValue()+"\"");
		builder.append(">");
		return builder.toString();
	}
}
